package com.bawei.common.rabbit.enums;

import com.bawei.common.rabbit.constant.QueueConstant;

/**
 * @author 蒋柏林
 * @version 1.0
 * @project mall-cloud
 * @date 2022/10/21 19:28:06
 */
public enum QueueEnum {


    TEST(QueueConstant.TEST_NAME,"测试队列");

    private String queueName;

    private String queueDesc;

    public String queueName() {
        return queueName;
    }

    public String queueDesc() {
        return queueDesc;
    }

    public String queueStr(){
        return new StringBuilder(this.queueName).append("(").append(this.queueDesc).append(")").toString();
    }
    QueueEnum(String queueName, String queueDesc) {
        this.queueName = queueName;
        this.queueDesc = queueDesc;
    }
}
